﻿using WH.Model.Systems;
using WH.Services.BaseService;

namespace WH.Services.IServices.ISystem
{
    public interface IRolePermissionService : IBaseService<RolePermissionEntity>
    {

        /// <summary>
        /// 获取角色有权限的资源
        /// </summary>
        /// <param name="roleId"></param>
        /// <param name="ResourceTypes"></param>
        /// <returns></returns>
        Task<IEnumerable<RolePermissionEntity>> GetPermissionResource(string roleId, params int?[] ResourceTypes);
    }
}
